<?php
require_once '../core/init.php';
require_once '../core/toro/toro.php';
require_once '../core/mem/mem.php';
require_once '../core/mysql/mysql.php';

//404页面
ToroHook::add("404", function() {
    exit('<h1>404</h1>');
});

//路由
Toro::serve(array(
    '/upload_img_plugin'            =>      'upload_img_plugin',       //正式的上传
    '/test'                          =>      'test',                     //测试的上传
    '/test/insert'                  =>      'test_insert',                     //测试的上传
    '/test/sc'                  =>       'test_sc',                     //测试的生成
    '/test/session'             =>        'test_session'                //存img
));

http://192.168.0.99:8022//test